﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cyotek.GhostScript;

namespace SWCInvoice.Model {
    public class ImageFormatWrapper {

        #region Fields

        /// <summary>
        /// The ImageFormat Object
        /// </summary>
        ImageFormat _imageFormat;

        /// <summary>
        /// The name of the image format
        /// </summary>
        string _name;

        #endregion

        #region Properties

        /// <summary>
        /// The ImageFormat Object
        /// </summary>
        public ImageFormat ImageFormat {
            get {
                return _imageFormat;
            }
            set {
                _imageFormat = value;
            }
        }

        /// <summary>
        /// The name of the image format
        /// </summary>
        public string Name {
            get {
                return _name;
            }
            set {
                _name = value;
            }
        }

        #endregion

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="imageFormat">image format string</param>
        public ImageFormatWrapper(ImageFormat imageFormat)
        {
            _imageFormat = imageFormat;
            _name = imageFormat.ToString();
        }
    }
}
